def lca(c, B, I, leven=10):
    H = c["lca_horizon_jaar"]
    posten = [("hout", 1200, .26, 30), ("staal", 300, 2.5, 30),
        ("beton", 2000, .12, 30), ("isolatie", 150, 3, 30),
        ("modulegebouw", 1, 650, 30), ("modulerek/water", 1, 110, 15),
        ("PV12", 1.4, 600, 25), ("PV48", 4.2, 600, 25),
        ("batterij12", 3.072, 100, 8), ("lamp12", 2, 50, 8),
        ("elektronica12", 1, 60, 10), ("wind", 1, 650, 20),
        ("WP", 1, 800, 15), ("H2", 1, 1000, 10),
        ("elektronica48", 1, 150, 10), ("batterij48", B, 100, leven)]
    inventaris = [{"post": n, "hoeveelheid": q, "factor": f,
        "leven_jaar": L, "aantal": math.ceil(H/L),
        "kg": q*f*math.ceil(H/L)} for n, q, f, L in posten]
    overige = {"transport": 300, "eind": 500, "verbruiksmateriaal": 30*H,
        "netimport": I*.15*H, "overig_gebruik": 15*H}
    totaal = sum(r["kg"] for r in inventaris)+sum(overige.values())
    return {"B_kWh": B, "import_kWh_jaar": I, "leven_jaar": leven,
        "inventaris": inventaris, "overige": overige,
        "kg_20jaar": totaal, "kg_jaar": totaal/H}
