Added the assert statement to make sure that for the interested accrued, the month is greater than or equall to 1