string format with double and duration