from datetime import datetime, timedelta
db_date = '2022-04-15 17:30'
date_to = datetime.fromisoformat(db_date)
date_from = datetime.now()
minutes_left = (date_to - date_from).total_seconds() // timedelta(minutes=1).total_seconds()
print(minutes_left)