Nonresidents
Multiply your total exemptions (Form 1-NR/PY, Line 4g) by the nonresident deduction and exemption ratio (Form 1-NR/PY, Line 14g), to get your exemption amount (Line 22). The ratio is your Massachusetts gross income (from sources in Massachusetts), divided by total gross income from all sources (as if you were a full-year Massachusetts resident).