The idea behind the age calculation is very simple. You need to perform a comparison between the current date and…