Now the code is in a working condition without the RTCSet and Appointment write functions. Need to test with an expired appointment followed by a valid appointment