Recalculation for the position of the delay-overlay

Resolves #129
- Changed some variables for better understanding
- Reduced some duplicate calculations