Deductions & credits

Thank you for answering this question....how do you arrive at the portion we can claim?