Some calculation methods