Deductions & credits

Im not sure i owe 320 right now so theyll probably deduct that from stimulus,my friend owes $1,600 & he got his stimulus of $1700 so im not sure how they doing it or sometimes i think people get overlooked depending on the amount you owe