Math calculation of a cat