Valorant score system

Im just curious how it gets the score like i do really good some games its like 988 or 953 or something and then i do OK and its like yeah heres 1k went 31/19 955 2 games b4 that i go 22/10 and its 1k im just confused on how it calculates iit all please explain Thank you