model 0 calculation