block to calculate propotional and differential error

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>