#!/usr/bin/rubyrequire'date'puts"Enter your birthdate (YYYY-MM-DD):"birth=Date.parse(gets,true)today=Date.todayage=today-birth# in daysmin_age=(2*(age-7*365.25)).roundmax_age=(age/2+7*365.25).roundmin_birth=Date.today-min_agemax_birth=Date.today-max_ageputs"Your age pool is #{min_birth.to_s} - #{max_birth.to_s}"puts"You're too young ^__^"ifmin_birth>max_birth