fixed training speed calculation