Teg: Cost Analysis