Calculate stars based on min, max and step