Calculate offset added