better ms calculation