correcting calc err

Signed-off-by: SzmergieL <wierzchowski.k@gmail.com>