calculate_points f() return points array