Your approach is fine.
Instead of three seperate cases you could also use this, which is not better but just another way of doing it:
EMAT = (L1 hit rate × L1 time) +
(L1 miss rate × L2 hit rate × L2 time) +
(L1 miss rate × L2 miss rate × full miss penalty)