calculating time added (str to int)

Signed-off-by: Blazej Mirowski <blazej.mirowski@tieto.com>