[BUGFIX] Add initialOffset to calculation

Change-Id: I5c44f2ec46b6dfc6bb98efcde0dd435817d18814
Resolves: #54007
Reviewed-on: https://review.typo3.org/27114
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer