Fixed issue with number of days displaying incorrectly