max calculation count for input data