The leap year in this function must subtract -364 days for the fix the date. Need to change the revise tests