refactored term estimation calculator