Rule to monitor device status ON/OFF and calculating total usage

Do you have persistence set up and running: https://www.openhab.org/docs/configuration/persistence.html

And by usage do you mean that you want to count how many times the switch has flipped to ON? Or maybe see a graph indicating how long it has been ON for a period of time?

I used the search function with “calculate time” and found this generator calculation thread. It’s old but it should get you started.