Hello lemings and old redditors!

I have counter for each of medication that gets decrement with automations once or twice a day at specific time. That works fine, but now I’d like to see for how many days I have pills left before I have to resupply. For example I take 2 pills of decortin per day and since there are 8 in counter I have enough for next 4 days and that will be on 21.06.2023. But I take 4 pills of envarsus per day and that means I have to resupply in 7 days since there are only 29 pills left. So basically I want a Card on my dashboard with 2 additional columns, how can I do that?