from datetime import datetime, timedelta b=datetime.now() a=datetime(2021,4,27,22,00,0) #minutes=int(b.strftime('%H'))*60+int(b.strftime('%M')) #print(minutes) if a>b: print('Not happen yet') else: minutes_1=int(b.strftime('%H'))*60+int(b.strftime('%M'))-int(a.strftime('%H'))*60+int(a.strftime('%M')) if minutes_1>90: print("FT") elif minutes_1<90: print("In Progress") print(minutes_1) elif minutes_1>45 and minutes_1<60: print("HT")