Welcome! Share code as fast as possible.

- id: '1663891533844'
  alias: 'Convert time spent: Prep & Organize Food to Watching TV credits'
  description: ''
  trigger:
  - platform: state
    entity_id:
    - input_button.log_time_spent_prep_organize_food
  condition: []
  action:
  - service: input_number.set_value
    data:
      value: "{{ (((states('input_number.minutes_to_add') | float) + (states('input_number.hours_to_add')
        | float * 60)) * 2) | round(1) + (states('input_number.time_credits_watch_tv')
        | float) \n}}"
    target:
      entity_id: input_number.time_credits_watch_tv
  - service: input_number.set_value
    data:
      value: 0
    target:
      entity_id:
      - input_number.minutes_to_add
      - input_number.hours_to_add
  mode: single