Hey guys, I have math problems

There's this thing I know is probably simple, but I just can't figure it out. I need to calculate how long it will take to reach X when I know Y per second.

Easy example:

I know I want 1000 Kb (X) and I download, say, 50 Kb per second (Y) - how do I calculate how long it'll take to reach X?