English rules for using "a" or "an" depend on sounds used in the next word, not particular letters. "A unit" and "An hour" are easy examples that might trip people up when focused on the letters used in spelling, but if you sound it out, you can probably work out what sounds best.