Added code for calculating difference between days.