Before I developed a reliable method to wake myself up I used to occasionally feel “trapped” in a dream. It usually only lasted about 20 seconds before the panic woke me up, though.
Most of the time I find time in dreams to be 1:1 or close to. If I become lucid during the night i’ll have a few hours of lucidity unless i “extend” it, but if I become lucid on the floor in front of the heater while waiting for my lift in the mornings I only have a few minutes or seconds of it.
My experience with dreams is that there is no set relation though. In inception there seems to be a formula (cannot remember nor be bothered to google), I think that is ridiculous (but then again, most [?] on this forum know how Inception is not accurate). I can have a dream that IWL lasts a very short time, but in the dream hours, days, months, even years may pass… because I do not have to live every moment of it… it just has to feel like that much time passes/has passed.