Just type in the Carbs, fats and proteins. Then the calories per serving. The program does the rest, all you have to do is know the numbers for the food. (Remember to multiply the percents by 100 for the answer)
Thanks to my health teachers for teaching these equations. I simply put it into scratch for others to use.