how to subtract ny pension

ny deduction for goverment pensions