Deductions & credits

I agree. But while filing 1040NR or 1040NR-EZ, how do I show that I was on H1B status only from October 16 to Dec 31, 2018? How do I calculate how much I owe/ how much I'm owed based on my change of status in October?