Corrected coordinate calculation