calculateAvailableDays amendment