Running position value

I have an input (bs4) object which width set to auto, i would like to put a image just behind this input. how can i get the running width position of this input? or any ideas to accomplish this

Thanks

Teo