How is the federal deductions and exemptions calculated?