Recalculation for the position of the delay-overlay

- Recalculation for the position of the delay-overlay
- Changed some variables for better understanding
- Reduced some duplicate calculations