### The age of partner in a family

Int DAY Person Formula Included used 1 time
**Value type**
Int
.
**Default value**
0
**Entity**
person

### How is this calculated?

To calculate this variable, the following input is used

- Int age The age of a Person (in years)
- Date date_of_birth Birth date

### Where is this used?

This variable is referred to by these other variables in their own calculations

- Boolean student_allowance__has_a_spouse Has spouse as per Student Allowances Regulations 1998

### Formulas

This is the formula used to calculate the value of age_of_partner

### 0001-01-01

This formula is used for scenarios from the date 0001-01-01 onwards. More info on formulas

```
def formula(persons, period, parameters):
return persons.family.members(
```**'age'**, period, role=Family.PARTNER)