How does MFP make predictions?

When you submit your info for the day it gives you the old "if every day were like today" in 5 weeks you would be this. Are they basing that solely off the calorie count for the day or does it also take into account carbs, sugars, fat, sodium, and so on?