calculate contribution by analysis