I Built My Own Python Birth Date Calculator App!

Day 5 of 100 Days Coding Challenge: Python

This is how I decided to create my own Python birth date calculator App. My husband, in his ever-charming, spreadsheet-souled way, has taken to sending his siblings bizarre messages like, “It’s been 3,472 days since your child was born!” No “Happy Birthday” or “Hope you’re doing well.” Just pure data. His love language is clearly math over mush. Where some people give hugs, he gives decimal points.

Naturally, I asked him, “How do you even know that?”
“Oh, I use this app,” he said, as if that explained everything. “It updates every day. Totally accurate.”

Hmm. I smelled a challenge. A numeric gauntlet had been thrown.
So today, I set out to make my own Python birth date calculator app—because if anyone’s going to calculate our niece’s lifespan with theatrical flair and a better font, it’s going to be me. Sorry, dear. It’s not personal. It’s Python.

Today’s Motivation / Challenge

Sometimes coding isn’t just about solving problems—it’s about proving a point. This project was part logic puzzle, part sibling scoreboard, part marital competition. I wanted to build something that turns a regular birthdate into a fun set of trivia: how many days, weeks, months, and even seconds someone has been alive. Because deep down, don’t we all want to feel like the star of our own oddly specific countdown clock?

Purpose of the Code (Object)

This app asks the user to enter a date of birth, and then calculates exactly how long it’s been—down to the day. It tells you how many days, weeks, months, and years have passed since that date, and even throws in the total number of seconds, just in case someone needs an existential crisis. It’s a surprisingly fun way to work with dates and time calculations in Python.

AI Prompt

Write a Python program that asks for a birthdate and calculates how many days, weeks, months, years, and seconds have passed since then. Format the results clearly for the user.

Functions & Features

  • Prompts the user to enter a birthdate
  • Calculates the total days, weeks, months, and years since that date
  • Displays the time passed in a readable summary
  • Bonus: includes total seconds alive for dramatic effect

Requirements / Setup

Python 3.10 or higher
No external libraries required


Minimal Code Sample

from datetime import datetime

birthdate = input("Enter your birthdate (YYYY-MM-DD): ")
b = datetime.strptime(birthdate, "%Y-%m-%d")
now = datetime.now()
delta = now - b
print("You’ve been alive for", delta.days, "days.")

This calculates the number of days since the user’s birthdate.

Python birth date calculator app

Notes / Lessons Learned

Birth Day App: created, posted, and ready to tell you how long you’ve been alive—whether you wanted to know or not. It’s oddly satisfying watching Python crunch your life into a tidy block of numbers.

And now for the grand finale:
I ran the app and checked how many days it had been since our niece was born. Then I compared it to my husband’s mysteriously accurate app.

Drumroll…

The numbers matched. Exactly.

So now I don’t know whether to shout, “Wow, my app actually works!” or mumble, “Okay, fine, my husband is right.”
Let’s call it a tie.
But mine has better UX. And color-coded text. So really… it’s a win.

Optional Ideas for Expansion

  • Add the ability to count down to future birthdays or anniversaries
  • Include fun facts like “You’ve lived through 6 leap years”
  • Add a time zone selector for dramatic international flair