circuit drawing and calculating