Using HC SR 04

The sound has to travel back and forth, so you are missing a factor 2 in your computation,
343 m are a better value for the speed of sound in dry air of 20° C.

distance = 0.0343 * duration / 2
distance = 0.01715 * duration

1/0.01715 = 58.30

distance = duration / 58.30