```typescript
export function hourRate(rate: number): number {
  return rate;
}

/** Pay for a week, with overtime beyond forty hours. */
export function weekPay(hours: number, rate: number): number {
  const total = hours * rate;
  if (hours > 40) {
    total += (hours - 40) * 1.5 * rate;
  }
  return Math.floor(total);
}
```