Someone correct me if I am (grossly) wrong.
$170 x 1 = $170 (AMCAS)
$39 x 29 = $1,131 (primaries)
~ $50 x 30 = $1,500 (secondaries, lowball)
~ $ 100 x 30 = $3,000 (secondaries, high estimate)
Plane tickets, car/Uber/gas, accommodations vary based on your needs and where you interview. Also don't forget to factor in any dress clothes cost if you don't have something appropriate.
I like a $500 - 700 interview estimate - it would cover a plane ticket and hotel and meal if you don't go crazy expensive.
Averaging the secondary cost (2000) and assuming 500 x 2 interviews (because I believe in you OP) mine adds up to around $4300. Planning on at least $5000 would not be a bad idea. I know I spent more than 5k during the cycle but I applied to a mix of MD and DO and got several interviews.