Calculations are not difficult in Access and in fact, they will usually be simpler than they were in Excel You can also do pretty much anything you want to do in Access provided you are willing and able to write code. Please, go back to using Excel for a while longer. Access is a relational database and works very differently than a spreadsheet. You need to get a better grasp of some important concepts before you continue. You are creating a nightmare for yourself. You need to take your Excel hat off and hang it in the closet when you work with Access. It is a different mindset but if you can make the transition, it will be significantly easier to work with large sets of data.
The major difference between Excel and a relational database (not just Access) is that with Excel, the presentation and data layers are merged. Row order is meaningful and every point of information has a unique way to address it (by row and column). In a database, you have rows and columns. At first blush, a table in datasheet view looks like a list in a spreadsheet. Except, in the table it is only data. There is no formatting, no row order. Row order is assigned by sorting or simply by the database engine picking up one record and then another. In the underlying spreadsheet file, adjacent columns are next to each other and one row follows another. In a table, you can address a column by its name but there is no way to refer to a specific row. You have to use the primary key to get to a specific row. In a database, we use forms and reports for presentation and they don't have to look anything like the underlying table.
1. Record IDs are not data. They have no meaning and are used ONLY to uniquely identify a record. In your query you are using the ID in a calculation. This is absolutely wrong even if it seems to work for now.
2. Relational databases work on set theory. There is no such concept as row number. Saying you want to sum the last 12 rows doesn't have any meaning unless you can identify those 12 rows some other way. You must make them a set somehow. So far you haven't been able to and I can't tell by looking at the table what the special meaning of the last 12 rows is.
So, before you can come close to actually solving your problem, you need to tell us (and yourself) what makes those last 12 rows a set.