fix calculate contest makr