Recalculation for the position of the delay-overlay

- Changed some variables for better understanding
- Reduced some duplicate calculations