manufactured = 20230501
expire_days = 60
today = 20230715

m_year = manufactured // 10000
m_month = (manufactured // 100) % 100
m_day = manufactured % 100

t_year = today // 10000
t_month = (today // 100) % 100
t_day = today % 100

manufactured_total = m_year * 360 + (m_month - 1) * 30 + (m_day - 1)
today_total = t_year * 360 + (t_month - 1) * 30 + (t_day - 1)

expire_total = manufactured_total + expire_days

if today_total <= expire_total:
    print("Safe")
else:
    print("Danger")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: