How to use postgrex interval datatype

Hey fellow learners,

I have a field called estimated_hours in one of my Ash resource called tasks. I want the datatype of this field to be Postgres interval. I want to calculate how many hours does user wants to complete a task and i will also calculate the sum of these estimated hours.

I found the documentation below from Hex Docs:

I have also searched for Postgres interval datatype and went through the below tutorial.

However, I couldn’t figure out how to apply it in my Ash resource.

Please help me to find out how I can do it.