## 1) First method : just tweaking your code
Freitag
Samstag
Sonntag
Montag
Dienstag
Mittwoch
Donnerstag
## 2) Second method : a slightly more sophisticated example using a handy user-defined function
Freitag +0 day(s) --> Freitag
Freitag +1 day(s) --> Samstag
Freitag +2 day(s) --> Sonntag
Freitag +3 day(s) --> Montag
Freitag +4 day(s) --> Dienstag
Freitag +5 day(s) --> Mittwoch
Freitag +6 day(s) --> Donnerstag
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.