def maxlijst(lijst):
    aantdelen = len(lijst)
    a = lijst.keySet()
    totaal = 0
    for items in a:
        value = lijst.get(items)
        try:
            totaal += value
        except:
            continue
    return totaal

def maxvanacht(value1,value2,value3,value4,value5,value6,value7,value8):
    totaal = max(value1,value2,value3,value4,value5,value6,value7,value8)
    return totaal

def sommeerveel(value1,value2,value3,value4,value5,value6):
    totaal = value1+value2+value3+value4+value5+value6
    return totaal

def roundupwards(value):
    return round(value+0.5)

def maakstring(lijst):
    a = lijst.keySet()
    totaal = 0
    aantal =0
    nwstring = ''
    for items in a:
        value = lijst.get(items)
        try:
            totaal += value

            if aantal == 0:
                nwstring += str(value)
            else:
                nwstring += ';'+str(value)

            aantal += 1

        except:
            continue

    return nwstring