How to do simple float calculations in a interrupt handler on NodeMCU ESP32

Honestly, that sounds like a kludge. Sorry, this is just one of my gloves off days.