虚构国家新法政府有一个不寻常的年龄计算系统.每当一个人的生日,这个人的年龄在新年节上增加一个.例如,艾玛的出生日期是2022年12月31日,所以艾玛成为2023年1月1日.作为另一个例子 - 约翰的生日是1月1日,所以他出生的那天他成为1岁.根据一个人的出生日期,你的任务是使用新法政府的年龄计算系统输出该人的年龄.例如,如果出生日期是2022/12/31年,年是2023年,输出应该是1.
To calculate the age using New Fa government's age calculation system, you can subtract the birth year from the given year and then check if the birth date is after January 1st in the given year. If it is, then the person's age would be one less than the difference in years, otherwise it would be equal to the difference in years.

Here's an example code in Python:

```
import datetime

def calculate_age(birthDate, year):
    birth_year = int(birthDate.split("/")[0])
    birth_month = int(birthDate.split("/")[1])
    birth_day = int(birthDate.split("/")[2])
    
    if birth_month > 1 or (birth_month == 1 and birth_day > 1):
        age = year - birth_year - 1
    else:
        age = year - birth_year
    
    return age

birthDate = "2022/12/31"
year = 2023
print(calculate_age(birthDate, year)) # outputs: 1
```