dynamic PST calculation