create a function to calculate the persons givens