Which star rating to purchase?

Any resources on how to decide star rating while purchase.

Paying a lower sum earlier Vs paying lower electricity bills later!

Any maths on this?