def condensate_abovedew(Bg, Bgi, Gp, Gpi):
    """
    Calculate the parameters for material balance plot of gas-condensate reservoirs
    above dewpoint pressure

    Input:
    Bg: array
    Bgi: initial Bg, float
    Gp: array
    Gpi: initial Gp, float

    Material balance plots:
    * Plot 10.1: F vs Eg

    Output:
    F: array
    Eg: array

    """
    Eg = Bg - Bgi
    F = Bg * (Gp - Gpi)
    return(F, Eg)