Hmm... sys.master_files returns 8kb pages, which means 128 of them = 1 mb. So, why are all the calculations multiplying by 8? By my questionable math skills, 8(kb) * 8 = 64(kb).
If we multiply 8kb pages by 128, we get 1024(kb) or 1 mb. Am I missing something?