I made this super-simple program to calculate macronutrient ratios based on grams of each:
You enter into it the grams of each macronutrient from the nutrition label of some food, and it calculates the macronutrient ratio for that food.
To use it you will have to know how to run a shell script.
The calorie math I am using is fat9, protein4, carb*4 – is there anything more accurate I should be doing?
All feedback and feature requests are welcome!