def nearest_5_calc(usage,pct):
    unrounded = usage * pct
    # Round half even to nearest 5 cents
    rounded = (unrounded / D('0.05')).quantize(D('0'), ROUND_HALF_EVEN) * D('0.05') 
    return rounded
dataset/ETHPy150Open gratipay/gratipay.com/gratipay/utils/pricing.py/nearest_5_calc/original