With the app mo.pla, you can buy the Germany ticket anytime and activate it immediately. You can also cancel it up to 24 hours before the end of the current month. Other apps require you to cancel by the 10th of the month, so if you buy it after the 10th, you end up paying for two months. We have used it multiple times on short notice, and it works just fine, really handy!