def persentage(now, before):
    """
    given two data points it returns the percentage of the difference
    """
    part = now - before;
    if (before):
        return 100 * float(part) / float(before)
    else:
        return 0