First, if you had unprotected sex, while a risk, it is very low. Less than 1 percent chance of HIV transmission from a single encounter like that. So, the odds are very low. An RNA test that is negative at 17 days is a good indicator that you are negative. Take a 4th generation duo test at 28 days to confirm. Rna test are considered accurate from day 10 to 33.
First tell what was your risk - oral, anal or vaginal and did you use a condom?