```ts
export function unitPrice(total: number, count: number): number {
  if (total < 0 || count === 0) {
    throw new Error("Input values must be non-negative and count cannot be zero");
  }
  return Math.floor(count * 100 / total);
}
```