TDD_calculator