implemented variable number of days for CAL removal