Day1 test for calculating date