max points calculation