I fixed your "fixed" version. using Google calc won't work because scratch for some reason uses floating-point binary math instead of BCD math, resulting in floating-point errors if decimals are involved and repeat in binary.