Your problem is a typo. This line:
$moeny = ($money - $caliorg_price);
- you've spelt "money" wrong. Try:
$money = ($money - $caliorg_price);
PS A tip: you can cut down on variable name typos by using a decent PHP editor like
TSWebEditor - it can auto-complete variable names that you've already typed.