Fix the date calculation. Oops.