fix calculation of Ta