Understanding Total Period Cost: A Comprehensive Formula Guide