Refactored calculator, calculate offset when filtering for projection.