date math is horrible