type in max results calculation