Mathematical calculation scripts