rudimentary calc