MPAGS calculator program