Pugs have major health problems, so make sure you buy from a reputable breeder who has done all relevant health tests (eyes, hips, patellas?) and breeds from healthy stock.
I think the going cost for a good Pug is £700-800
Jabs are around £40-50 for the puppy vax, around £30 a year after.
Insurance would be £20-30 a month for life time insurance (you can get cheaper, but they only pay out for a year which is no good if your dog gets a life time condition) But watch out for the excess - typically £50 and/or 10% of the cost of treatment. And remember - you usually pay up front and claim the money back. Could you afford £2000 for a hip op for a month or two before the insurance pays you back £1750?
Crate, bedding, bowls, collar, tags, lead, harness (for a pug, you want a collar for the tags but walk it on a harness) - £100 - £200.
Food - not a lot for a pug, even on good food. £1 a day at most? Probably half that.
Flea and worm treatments - £10 a month? About that - prob a bit lower.
Training/socialisation classes - £3 a week. Plus high value treats (a sausage cut up small

)
Toys - I get 'bargain bin' toys (Christmas toys in January) but still spend £50+ a year for three dogs. Plus Kongs.
The problem is, to get a good pug you have to fit in with the breeder's time scales - not yours. There may not be one available when you have time for one.
An alternative is rescue - yes pugs show up in rescue. If you fall lucky, you may find one to fit your time scales, and will be much cheaper (£100 - £200 adoption fee)
If it comes down to a choice between waiting until you finish Uni or buying untested stock from a puppy farm or BYB, Please, PLEASE wait until you finish Uni. Pugs are lovely but unscrupulous breeders are ruining them. If you don't buy from a reputable breeder or adopt from a rescue, you are adding to the problem and the suffering of these lovely dogs.