Iv math calculations