I've been struggling for a while.

I would like to put a value into A1.
then click a button to sum A1 and A2 and display the answer in A2.
then Clear A1.

This is the best I could come up with, P.S. its not working.

```
function addreward() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var sheet = ss.getSheetByName("Farming & Staking");
  var oldcake = sheet.getRange("A2").getValue();
  var newcake = sheet.getRange("A1").getValue();

 oldcake == newcake + oldcake;

 sheet.getRange("G7").clear();
}

```