Shorter or Longer????

Options
Is it better to only do 20 minutes of HIIT cardio or 30+ minutes of HIIT cardio to lose weight?? I'm also doing strength and weight training every other day but i'm worried about burning off muscle. HELP!!!