Fewer carbs and more protein mean a better score
(50 − c) × 100/35100 points up to 15% carbs, 0 points from 50%. In between, the points drop steadily.
(p − 20) × 100/200 points up to 20% protein, 100 points from 40%. In between, the points climb steadily.
Cat
Dog
With the sample label, for a cat: 19% carbs earn 88.6 points and 40% protein earns 100. Each counts for half: 0.5 × 88.6 + 0.5 × 100 = 94.3, rounded down to 94.


