import math


def p_sequence(expected_value, days_a_week, upper_bound, step):
    """Calcualtes the capacity values to test."""
    lower_p = math.ceil(days_a_week*expected_value/0.99)
    # PSEQ per week, pseq per day
    PSEQ = sorted(list(set([int(lower_p + step*i) for i in range(upper_bound)])))
    pseq = [round(i/days_a_week, 2) for i in PSEQ]
    return(pseq, PSEQ)