Fix how twice a month is calculated