affinity calculating fixed