Want to calculate the formula based on two columns (for each row) in the grid

I am just getting started with kinetic, and I want to experiment with the below customization in it.
I want to calculate the formula based on two columns (for each row) in the grid, namely A1 and B1, and I want its value to be stored in column A1. This may be done with the click of a button.
I really need someone’s assistance in finding a solution to this problem.
Please refer to the accompanying screenshot for an example.
MicrosoftTeams-image (2)
MicrosoftTeams-image (1)
MicrosoftTeams-image

Regards,
Shardul Jadhav