MPG calculation