input calculation

runs, but didnt test for valid values yet, as we dont have vizualization