How is the Total Funding Fee calculated?

Updated