Skip to content

Instantly share code, notes, and snippets.

@quickshiftin
Created June 18, 2018 01:21
Show Gist options
  • Save quickshiftin/42f14b1cbccb7df2ecce31efdede33b7 to your computer and use it in GitHub Desktop.
Save quickshiftin/42f14b1cbccb7df2ecce31efdede33b7 to your computer and use it in GitHub Desktop.
Calculate your cat's FBMI
/**
* https://www.embracepetinsurance.com/waterbowl/article/measuring-my-cats-body-mass-index-the-fbmi
*
* ribCage float Circumference of your cat's rib cage in inches. (The level of the 9th rib is ideal).
* legLength float Length in inches of your cat's rear leg from knee to ankle.
*
* If the result is >= 42, your cat is overweight!
*/
function catBmi(ribCage, legLength) {
return (ribCage / .7062 - legLength) / .9156 - legLength;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment