How is my profit calculated?

Updated