Ecobee run time to gsheets

I am trying to figure out out to create a flow to replace one I had on IFTTT.

What I want to do is to output how long my AC runs and frequency.

I have the state.change node with my climate.home as entity id. The “if state” is set as heat_cool.

But after that I am unsure how to move forward.

I do have node-red-contrib-viseo-google-spreadsheet installed and accepting information when I test with an inject node.

Here is what I want to happen.

AC turns on it sends the time and date and "ON’ with the payload to Google sheets that appends it to a line.
When AC turns off it send the time and date and “OFF” with the payload to Google sheets that appends it to a line.

Thank you for any help…