Dear Stata Users,

I have just started to use Stata and I am trying to calculate sleep duration (difference) between bedtime and wakeup time.
Data are in minutes after midnight. I tried different methods but what works for some variable does not work the others.
Bed_time Wakeup_time
1380 360
60 480


Thank you in advance
Fatos.