def invoice_period(dt, split_day=15): return f"{dt:%Y-%m}-01–{split_day:02d}" if dt.day <= split_day else f"{dt:%Y-%m}-{split_day + 1:02d}–koniec"