Deductions & credits

Thanks This helps. So trying to understand my situation. If  i have US income of $40K and i have $5k foreign income. I do pass the physical presence test as i came to US in May 2021 after more than 10 years outside and is  a US citizen. So how much should be the taxable amount (Before standard deduction ) for me ? I was thinking on the page for -xxxx Here is a picture of your 2021 Income should show 2 line items 1. With the $40K and 2. with negative minus 5K. And the total should add to $35K. Instead  the screen shows xxx, here is a picture of your 2021  shows 2 line items as 1. of  $45K and 2 minus $5 k. The total here is $40K . Is this correct ? (please note i am using desktop version )