while (startTime<0 || startTime>2400) {
cout << "\nInvalid time."; // keep asking for time input until it is valid
cout << "Enter start time of the call(For example, 2:30 = 2330): ";
cin >> startTime;
}