Quantifying the cost of distraction (idea)

# Monday - Friday distractions_by_workday_mins = [ [10, 20, 20], [15, 15, 30], [40, 10], [30, 20, 15], [10, 10, 10, 10, 15] ] days_working = len(distractions_by_workday_mins) hours_working = 8 hour_mins = 60 time_to_reach_flow_state_after_distraction_mins = 15 weekly_salary_dollar = 920 hourly_rate = weekly_salary_dollar / (days_working * hours_working) print(hourly_rate) # 23.0$ distractions_total_time_mins = sum([sum(day) for day in distractions_by_workday_mins]) distractions_total_time_mins += sum([len(day) for day in distractions_by_workday_mins]) * time_to_reach_flow_state_after_distraction_mins distractions_total_cost = (distractions_total_time_mins / hour_mins) * hourly_rate print('Cost of distractions this week: %.2f$' % (distractions_total_cost)) # Cost of distractions this week: 199.33$