manual crypto calculation