make lastDays take variable input