function [z sol z1]=MyCost2(q,model,m)
    global next_helpstatue;
    global before_helpstatue;
    sol=ParseSolution2(q,model,m);
    
    TotalWT=sol.TotalWT;
    eta=0.0003;% value distance
    tvalue=20;% 20 dollar per hour
    %veihclevalue=1000;
    z1=eta*sol.TotalD+tvalue*(max(0,TotalWT));
    %getoff_fine=60 ;% dar soorate shamel shodan kasi ke gharare dar istagah ghabl savar she
    beta1=5;    % Capacity Constraint
    beta2=5; %cycletime_constraint
    timefine=0; % fine for passengers with unaccaptable time ratio
    
    if (next_helpstatue(m)+before_helpstatue(m))>0 
        timefine=60/3*(model.directindex); % fine for passengers with unaccaptable time ratio;   
    end
    z=z1*(1 + beta1*sol.MeanCV +sol.cycletime_constraint*beta2)+timefine*sum(sol.numetimefine);%sol.Usedveihcle*veihclevalue*help++getoff_fine*sol.numgetoff

end