Hi I am trying to create a table for Mean Time Before Failure (MTBF) over a 12 month rolling window. My Problem is my faults end Dec 20 and after that i need to keep the window moving forward by subtracting data from faults per months before 12 month window start and prior to Dec 20 I need to have cumulative sum of faults. Units represent the sum and subtraction before Dec 20.
| Operating Hour | Months | Faults | Units | MTBF |
| 175200 | Aug-19 | 1 | 1 | 175200 |
| 175200 | Sep-19 | 1 | 2 | 87600 |
| 175200 | Oct-19 | 1 | 3 | 58400 |
| 175200 | Nov-19 | 1 | 4 | 43800 |
| 175200 | May-20 | 1 | 5 | 35040 |
| 175200 | Jul-20 | 1 | 6 | 29200 |
| 175200 | Aug-20 | 1 | 7 | 25029 |
| 175200 | Sep-20 | 1 | 8 | 21900 |
| 175200 | Oct-20 | 1 | 9 | 19467 |
| 175200 | Nov-20 | 1 | 10 | 17520 |
| 175200 | Dec-20 | 1 | 11 | 15927 |
| 175200 | Jan-21 | 0 | 7 | 25029 |
| 175200 | Feb-21 | 0 | 6 | 29200 |
| 175200 | Mar-21 | 0 | 5 | 35040 |
| 175200 | Apr-21 | 0 | 4 | 43800 |
| 175200 | May-21 | 0 | 3 | 58400 |
| 175200 | Jun-21 | 0 | 2 | 87600 |