import sys
sys.path.append('../')
from timings import calculate_times
# Minutes used prior to today
used_to_date = 23
# Times from today
times = [
('09.30', '09.37'),
('10.42', '10.58'),
('11.06', '11.13'),
('11.17', '11.43'),
('12.03', '12.22')]
calculate_times(used_to_date, times, limit=False)Time spent today: 75m, or 1h 15m
Total used to date: 98m, or 1h 38m