how are retirement deductions calculated for MA state

How are Retirement Payments calculated for Massachesetts