Added YEAR to the calculation, making the budget work when period spans over multiple years