Chemical calculator