cost calculator sorta working

only works with valid inputs, needs error checking and maybe some
formatting but otherwise good.