Deductions & credits

@JulieS I only had 1098 for primary.  It showed a refund.  Then I added 1098 for HELOC on primary.  

 

This is a weird phenomenon.  I have two 1098. 

 

Primary = $10k interest,  Heloc = $2k interest

I get a refund.

 

If I delete both out, and first add the Heloc = $2k interest, then add the primary = $10k interest, it will give me a lesser refund.

 

If I delete both out, and first add the primary = $10k interest, then add the Heloc = $2k interest, it will give me a higher refund.

 

I am not changing the information.  Just the order in which it is entered under Deductions and Credits under Your Home.  Why is this happening?