function [x] = q(V_i,n,C,Vmax)
    if V_i <= n
        x = C;
    else
        x = 0;
    end
end

