Calculate coordinate when pop operators