Modify tickrate calculation to be more accurate