ITTE-1160 Fixed calculation bugs and null result on screen.

Signed-off-by: Simeon Iliev <simeon.iliev.bg@gmail.com>