Just wanted to note, in case you wanted to use a phrase like in the OP but without the parentheses: I don't think "It takes me X hours" is generally used with "to commute", at least not in AE. "It takes me..." (X amount of time) is fine, but without commute. Concerning the term "commute," I'm far more familiar (having grown up in the US) with "I commute [verb] X hours " and "I have an X-hour commute" [noun].
More detail: "Commute" as a noun is most likely to be found when the commute is mentioned as an attribute of, say, one's job, or one's daily routine, or similar: "I have to get up early because I have a two-and-a-half hour commute." "The people are great and the pay is pretty good, but I do have a ..."
If the daily journey itself is the main focus, use of the verb is more likely; e.g.: "I commute two and a half hours every dang day!"
(Caveat: This is off the top of my head, or from my gut feeling, not out of any rule book.)
Edit: Long story short, I wanted to say "It takes me two hours to get to work" sounds more idiomatic to me that "It takes me two hours to commute to work" - but I'm starting to wonder if other sees (or hear) that differently...