Bin / Waste Collection

HI,

sorry to bump into this thread, but I would really like to have this sensor for days_left.

I use another waste package (@xirixiz’s mijnafvalwijzer) and have a sensor giving me the next pickup in this format:

  - platform: scrape
    resource: !secret scrape_resource_date
    name: Afval Datum
    select: ".firstDate"
    scan_interval: 60 

with this as output:

20

would there be any way to reformat that, and use it in a template to count the days left?

thanks for any help