Not to make this my personal tech support but... I thought my 2017 model was 'vintage' status and not repaired at Apple anymore? I'll see what I can find out...
It depends on what’s wrong. Just like anything else you have to take it in for an estimate. I don’t expect my car dealer to quote me a price on a repair without bringing it in.