max cost docs