i have no idea for this . I found the max voltage of capacitor using voltage differences between two legs. i can't find the time constant for charging the capacitor in second image .