"Мы в трёх часах езды от Бостона."
I came across this sentence in Russian, and it seemed wrong to me. I would have expected час to either be in genitive singular case (часа) since we have the numeral трёх before it, or perhaps singular prepositional (часе) because of the в.
Can someone help me figure out how to correctly deconstruct this sentence from a case perspective?