What is the solution?

Solve 505 + 1118 = 323*o - 638 for o.
7