converted circuit calculations

converted circuit calculations