JS finance calculator