Recalculation for the position of the delay-overlay

Resolves #129
- Changed some variables for better understanding
- Reduced some duplicate calculations
Merge pull request #18 from Peppie23/issue-129

Recalculation for the position of the delay-overlay