fixes to calculation model

Signed-off-by: Francisco Salinas <fssaez@gmail.com>