recipe calculate