import math


def Cond(g, h, i, j, CPcor, CTcor, F, t, p):
    """SBE equation for converting frequency to conductivity.

    Inputs:
    g: coefficient
    h: coefficient
    i: coefficient
    j: coefficient
    CPcor: coefficient (nominal)
    CTcor: coefficient (nominal)

    F: instrument frequency
    t: temperature (ITS-90 degrees C)
    p: pressure (decibars)
    """
    f = F/1000
    Conductivity = (g + h * round(math.pow(f,2),3) + i * round(math.pow(f,3),3) + j * round(math.pow(f,4),3) ) / (1 + CTcor * t + CPcor * p)
    return round(Conductivity,5)