Cleaned up PPV calculation