@ -62,7 +62,7 @@ class Sprint < Version
def eta
return nil if ! self.start_date
v = self.project.velocity
v = self.project.scrum_statistics
return nil if ! v or ! v[:days_per_point]
# assume 5 out of 7 are working days
@ -76,7 +76,7 @@ module IssuePatch
def velocity_based_estimate
return nil if !self.is_story? || ! self.story_points || self.story_points <= 0
return Integer(self.story_points * v[:days_per_point])