In how many ways can the letter COMMITTEE be arranged when it has to begin and end with a vowel?

I tried to use 4P2 \* 7!/ (2!)\*\*3, but 4P2/ 2! (=6) does not solve the arrangements of vowels, O,I,E,E, which are OI,OE,IO,IE,EO,EI,EE (7). So, is there a formula for that?