The indentation on this is a little misleading. Could you write it as:

```python
drain = (now - float(last_time)) * rate.drain_velocity
```