add min/max speed calculation

Change-Id: I53574339f3c4b2a7ac147c57eafb3b4d475aa427
Signed-off-by: Ilia Gaisinsky <apalon83@gmail.com>