TPN calculator with CDS support