The math doesn't quite work that way. There are 4 calories per gram of protein and carbs, and 9 calories per gram of fat. So you have to take each total for the day, multiply by the number of calories per gram, then divide by the total calories for the day to come up with your %. I checked your numbers for today, and they looked about right.
"You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down but the staying down." Mary Pickford