Changed how the GetExpiredDays function calculates the days to make it accurate
Added test cases for GetExpiredDays