Refactored Text Presentation Program (tpp) formula