got working

Calculation still does not work the way intended