Convert epoch to days left

Hi

i’m trying setup certificate monitoring JKS format.

for visualize data i’m using Grafana.

how to convert for example: 1 year left ==> 365 days left?

maybe someone know? :thinking: