За день до сегодняшнего дня Python DateTime
from datetime import datetime, timedelta
d = datetime.today() - timedelta(days=days_to_subtract)
Xenophobic Xenomorph
from datetime import datetime, timedelta
d = datetime.today() - timedelta(days=days_to_subtract)