Actually the score is based more on the energy left and energy consumed, so I think if you finished the game at 4800 you should more likely get S xD (very smart formula behind :p)