Deductions & credits

I would use the direct distance from home to the provider and back again.  If you stopped or went out of your way, that doesn't really count, so use the mileage as if you went straight there and back.