refs #1612 : enhanced: routine to calculate next versions.