typos and date calculation