How to get next funding rate & time ?

Hi i’m trying to create a bot with python and i’d like to know if there’s a fonction to get the next funding rate & time for a ticker ?
I’ve seen get_funding_rate.py but seems like it’s the 100 last fundings.
Also how can i convert the funding time in an actual time ?

Read this pls - https://binance-docs.github.io/apidocs/futures/en/#mark-price-stream
Next funding rate can only be predicted no certain answer until the settle time