McMillan calculator