Capacitor and voltage with a mapped output

Thanks grumpy Mike.