Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changedoc/full_retirement_age_calculator_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def calculator():
birth_year_str = str(input("Enter the year of birth or <enter> to exit ")).strip()
while birth_year_str != '':
birth_year = int(birth_year_str)
birth_month = int(input("Enter the month of birth (<Enter> implies 0)"))
birth_month = int(input("Enter the month of birth (<Enter> implies 0)") or "0")
fra_age_years, fra_age_months = full_retirement_age(birth_year)
fra_date_year, fra_date_month = full_retirement_date(birth_year, birth_month)
print("your full retirement age is ", fra_age_years, " and ", fra_age_months, " months")
Expand Down
2 changes: 1 addition & 1 deletion changedoc/full_retirement_calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# See https://www.ssa.gov/planners/retire/agereduction.html
#
def full_retirement_age(birth_year):
if birth_year >= CURRENT_YEAR:
if birth_year > CURRENT_YEAR:
return -1, -1
if birth_year < EARLIEST_YEAR:
return -1, -1
Expand Down